package cn.yangliu.nacos.management.model;

import java.util.List;

import javax.validation.constraints.NotBlank;

import static cn.yangliu.nacos.management.constant.ManagementValidateConstants.ROLE_NAME_MISS;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * The type of nacos.
 *
 * @author 问道于盲
 * @date 2020 -01-01
 */
@Data
public class RoleInsertModel {

    /**
     * current class instance's member.
     * The Rolename.
     */
    @ApiModelProperty(value = "角色名称", required = true, example = "管理员")
    @NotBlank(message = ROLE_NAME_MISS)
    private String rolename;

    /**
     * current class instance's member.
     * The Authority ids.
     */
    @ApiModelProperty(value = "资源id", required = true, example = "1")
    private List<Long> authorityIds;

}
